function palindrome(message){
    if (message.charAt(0)==message.charAt(message.length-1)){

        return true;
    }
    else {

        return false;
    }

}

document.write(palindrome('hello')+"<br>")// should return false
document.write(palindrome('abcba')) // should return true